type MenuType = {
  key: string;
  title: string;
  route: string;
};

const policyMenu = [
  {
    key: 'home',
    title: '首页',
    route: '/',
  },
  {
    key: 'economicZone',
    title: '走进经开区',
    route: '/economicZone',
  },
  {
    key: 'NewsCenter',
    title: '新闻中心',
    route: '/newsCenter',
  },
  {
    key: 'policyList',
    title: '政策申报',
    route: '/policyList',
  },

  {
    key: 'policyLib',
    title: '政策库',
    route: '/policyLib',
  },
  {
    key: 'publicOpen',
    title: '公示公开',
    route: '/publicOpen',
  },
];

const policyCarMenu = [
  {
    key: 'home',
    title: '首页',
    route: '/',
  },
  {
    key: 'commonIssues',
    title: '常见问题',
    route: '/commonIssues',
  },
];

let menuArray: MenuType[] = [];
console.log('process.env.SYSTEM===', process.env.SYSTEM);
if (process.env.SYSTEM === 'policy') {
  menuArray = policyMenu;
} else if (process.env.SYSTEM === 'policyCar') {
  menuArray = policyCarMenu;
}

export const menu = menuArray;
